Visibility

Enum defining how the user sees and can interact with an entry.

  • visible: 1. Whether the entry is visible. A non-visible entry will take up 0 width in the list (effectively removed from the list, visually)

  • skip: 2. Whether the entry should be skipped when searching

  • selectable: 4. Whether the user can interact with the entry

  • group: 8. Whether the entry belongs to a group

  • repeatable: 16. Whether this visibility can be applied to an entry more than once

  • searched: 32. Visibility applied as a result of searching

  • closed: 64. Visibility applied from an initially-closed state

  • filtered: 128. Entry has been excluded by a search

Author

fzzyhmstrs

Since

0.6.0, uses flags 0.6.8

Parameters

affectedBy

Predicate to determine if this visibility is affected by another

Entries

Link copied to clipboard

Standard visibility. The Entry can be seen, searched, and interacted with.

Link copied to clipboard

Visible because it contains valid search results inside it.

Link copied to clipboard

Entry hidden by a user action like toggling a group, or some visibility button. Not visible nor selectable, but searchable (in case the user reverses the hidden state after searching)

Link copied to clipboard

Hidden because it contains valid search results inside it, but it's group is currently collapsed.

Link copied to clipboard

Entry hidden initially by an initial-closed state

Link copied to clipboard

Entry filtered by searching. Not visible nor selectable

Link copied to clipboard

Visible entry that represents a group heading

Link copied to clipboard

Visible entry that represents a group heading

Link copied to clipboard

Visible entry that represents a group heading, but should be "closed"/"collapsed" by default

Link copied to clipboard

Filtered entry that represents a group heading. Filtering is usually done with a search.

Link copied to clipboard

Hidden entry that represents a group heading. Hiding is usually done with a button or other toggle.

Link copied to clipboard

Hidden entry that represents a group heading. This group has valid search results inside it, hence the searched flag

Link copied to clipboard

Hidden entry that represents a group heading. Group hidden initially by an initial-closed state. Hiding is usually done with a button or other toggle.

Link copied to clipboard

A disabled group heading, typically caused by a layout error.

Link copied to clipboard

A header entry. Always visible, skipped in searching, and not selectable. Visibility of headers can't be changed.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open override fun get(): DynamicListWidget.Visibility

Returns the entries current Visibility status

Link copied to clipboard

Returns the entries root Visibility status

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.